|
creator |
Liu, Yidong
| date |
2004-07-11
| | | description |
101 pages
| |
This thesis designed, implemented and described a prototype in the
field of code transformation for the duplicated code. It analyses
the clone pairs, which were saved as attributes in the IML_Graphs,
generates new functions or macros for the clone codes according to
the predifined transformation rules, then displays the new
functions/macros and replaces the duplicated code with the calls to
them. The programming languages in the work are Ada95 and Emacs
Lisp.
The work can be divided into three parts. First is to extend the
code clone detection tool - CCDIML; then the clone list from CCDIML
will be analyzed and transformed to new functions/macros; the last
step is to replace the duplicated code with calls of the
functions/macros. The correctness and precision of the replacement
of clones depends on the reulst of the clone detection, so the work
can be further enhanced in collaboration with the improvement of
CCDIML.
| format |
application/pdf
| | 1054533 Bytes | |